package com.ktjiaoyu.service.impl;

import com.ktjiaoyu.mapper.NewsTypeMapper;
import com.ktjiaoyu.pojo.NewsType;
import com.ktjiaoyu.service.NewsTypeService;
import com.ktjiaoyu.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-05-29
 * @Description:
 * @Version: 1.0
 */
@Service
public class NewsTypeServiceImpl implements NewsTypeService {
    @Autowired
    private NewsTypeMapper newsTypeMapper;

    @Override
    public R findNewsType() {
        List<NewsType> list = newsTypeMapper.findNewsType();
        System.out.println("list = " + list);
        return R.ok(list);
    }
}
